<?php

namespace App\Models;

use App\MongoBaseModel as Model;
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContracts;
use Illuminate\Foundation\Auth\Access\Authorizable;
use Illuminate\Auth\Authenticatable;
use Jenssegers\Mongodb\Eloquent\SoftDeletes;

/**
 * Class Admin
 * @package App\Models
 * @property string $id
 * @property string $name
 * @property string $mobile
 * @property string $password
 * @property string $lastLoginTime
 * @property string $lastLoginIp
 * @property string $created_at
 * @property string $updated_at
 **/
class Admin extends Model implements AuthenticatableContracts
{
    use Authenticatable, Authorizable, SoftDeletes;
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'name', 'email', 'password', 'mobile',
    ];

    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [
        'password', 'remember_token','_id', 'created_at', 'updated_at'
    ];
}
